package hzau.pojo.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import hzau.pojo.requestParams.SelectionQuestionParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SelectionQuestion implements Serializable {
    @TableId(type = IdType.AUTO)
    Long id;
    Long paperId;
    String description;
    String a;
    String b;
    String c;
    String d;
    String pic;
    Integer questionId;
    @TableField(exist = false)
    Double score;
    public SelectionQuestion(SelectionQuestionParam param){
        this.paperId=param.getPaperId();
        this.description=param.getDescription();
        this.a=param.getA();
        this.b=param.getB();
        this.c=param.getC();
        this.d=param.getD();
        this.questionId=param.getQuestionId();
    }
}
